package com.yuanfeng.userms.feign;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(name = "mall-business", url = "http://localhost:8087")
public interface BusinessServiceClient {

    //店铺收藏量更新
    @PostMapping(value = "shopBase/info/update/shop/collect")
    ResponseResult updateShopCollect(@RequestBody Map<String, String> paraMap);

    /**
     * 分销商品数量更新
     * @param data
     * @return
     */
    @RequestMapping("shop/fxGoodsInfo/updateFxGoodsSaleNum")
    public ResponseResult updateFxGoodsSaleNum(@RequestBody String data);

    /**
     * 查询是否正常商家
     *
     * @param map
     * @return
     */
    @PostMapping("/shopBase/info/shopName/queryShop")
    ResponseResult queryShopStatus(@RequestBody Map<String, String> map);

    /**
     * 查询是否正常商家
     */
    @PostMapping("/shop/gate/query/GateShopIdUserId")
    ResponseResult queryGateShopIdByUserId(@RequestBody Map<String, String> map);
}
